<?php

namespace App\Http\Controllers\View\Admin;

use Illuminate\Http\Request;

use App\Http\Requests;
use App\Http\Controllers\Controller;
use App\Facades\Services\RoleService;
use App\Facades\Services\AccountService;

class AccountController extends Controller
{
    public function index(Request $request){
        return view('pages.account.list',[
                'roles' => RoleService::getAll(),
                'users' => AccountService::getUsers()
            ]);
    }

    public function create(Request $request){
    	return view('pages.account.create',[
    			'roles' => RoleService::getAll()
    		]);
    }

    public function updatePassword(Request $request){
        return view('pages.account.update_password');
    }
}
